package com.hxzy.front.controller;

import com.hxzy.front.service.FontDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 前端用户管理
 */
@Controller
public class FrontUserController {

    @Autowired
    private FontDictDataService  fontDictDataService;


    /**
     * 显示注册用户页面
     * @param model
     * @return
     */
    @GetMapping(value = "/signup")
    public String register(Model model){
        // 查询单位类型 sys_data_dict
        List   dwlxList=this.fontDictDataService.selectByDictType("dwlx");
        model.addAttribute("dwlxList", dwlxList);

        //查询证书类型 sys_data_dict
        List zslxList=this.fontDictDataService.selectByDictType("zslx");
        model.addAttribute("zslxList", zslxList);


        return "register";
    }


    /**
     * 显示找回密码
     * @return
     */
    @GetMapping(value = "/user/forgetpassword")
    public String forgetPassword(Model model){

        return "forgetPassword";
    }

}
